import Vue from 'vue';
import Router from 'vue-router';
import { Landing, Index, News, Player } from '@/views/main';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'landing',
      component: Landing,
    },
    {
      path: '/index',
      name: 'index',
      component: Index,
      children: [
        {
          path: 'news',
          name: 'news',
          component: News,
        },
        {
          path: 'player',
          name: 'player',
          component: Player,
        },
      ],
    },
  ],
});
